
from fastapi import FastAPI
import uvicorn
from nacos_config import register_nacos

app = FastAPI()

@app.get("/user/info")
def info():
    return "{} Info from user"

if __name__ == "__main__":
    register_nacos("user-python-service", 8001)
    uvicorn.run(app, host="0.0.0.0", port=8001)
